﻿<UserControl x:Class="FR.SAFTAnalyser.Views.ConvertPemKeyView" 
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             MinHeight="300" MinWidth="300">
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*" />
            <ColumnDefinition Width="50" />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <TextBlock Text="Conversor de chaves Pem" FontSize="14" Foreground="White" Grid.Column="0" Grid.Row="0" Grid.ColumnSpan="2" Padding="3"/>
        
        <TextBox Text="{Binding PemFileName}" Grid.Column="0" Grid.Row="1" Grid.ColumnSpan="2" Padding="3" IsReadOnly="True" Margin="5"
                 ToolTip="Abrir o ficheiro pem com a chave privada ou pública"/>
        
        <Button Command="{Binding DoOpenPemFileCommand}" Content="..." Background="Transparent" Grid.Column="1" Grid.Row="1" Width="40" HorizontalAlignment="Right" Padding="3" Margin="8" BorderBrush="{x:Null}"
                ToolTip="Abrir o ficheiro pem com a chave privada ou pública"/>

        <TextBlock Text="Ficheiro Pem:" FontSize="12" Foreground="White" Grid.Column="0" Grid.Row="2" Grid.ColumnSpan="2" Padding="3"/>
        <TextBox Text="{Binding PemText}" Grid.Column="0" Grid.ColumnSpan="2" Grid.Row="3" IsReadOnly="True" Margin="5"/>

        <TextBlock Text="RSACryptoServiceProvider:" FontSize="12" Foreground="White" Grid.Column="0" Grid.Row="4" Grid.ColumnSpan="2" Padding="3"/>
        <TextBox Text="{Binding RsaSetings}" Grid.Column="0" Grid.ColumnSpan="2" Grid.Row="5" IsReadOnly="True" Margin="5"/>
        
    </Grid>
</UserControl>
